<div class="clearfix bg-light lter" style="border-bottom: 1px solid #ddd;" ng-controller="headerCtrl">
	<div class="col-md-2 text-center">
		<img height="40px" src="img/u81.png" />
	</div>
	<div class="col-md-10">
		<div class="col-md-4" style="height:40px;line-height: 50px; padding-left: 0;">智能硬件管理平台</div>
		<div class="col-md-8 text-right" style="line-height: 40px;">
			<div class="btn-group">
			    <!--<button class="btn btn-default btn-xs dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">-->
			       <span class="glyphicon glyphicon-user" style="font-size: 16px;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
			    <!--</button>-->
			    <ul class="dropdown-menu">
			      <li><a href="" ng-click="loginOut()">注销帐号</a></li>
			      <li><a href="" ng-if="identification" ng-click="newAccount()">新建帐号</a></li>
			      <li><a href="" ng-if="identification" data-toggle="modal" ng-click="dleAccount()">删除帐号</a></li>
			    </ul>
			</div>
			&nbsp;<span ng-if="identification">超级</span>{{roleName}}帐号：<span style="margin-right: 40px;">{{userName}}</span>
		</div>
	</div>
<!--新建帐号-->
	<div class="modal fade" id="modal_confirm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	    <div class="modal-dialog" role="document">
	        <div class="modal-content">
	            <div class="modal-header">
	                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	                <h4 class="modal-title" id="myModalLabel">新建帐号</h4>
	            </div>
	            <div class="modal-body wrapper">
	            	
	            	<form class="form-horizontal" id="confirmNewForm" name="newForm">
					  <div class="form-group">
					    <label for="inputUserName" class="col-sm-2 control-label">用户名</label>
					    <div class="col-sm-7">
					      <input type="text" name="userName" ng-model="user.loginName" required ng-pattern="/^[\u4e00-\u9fa5a-zA-Z0-9]{1,11}$/" class="form-control" id="inputUserName" placeholder="请输入用户名" required ="required ">
					      <!--ng-pattern-->
					      <div ng-if="(newForm.userName.$dirty && newForm.userName.$invalid) || submitstate">
					    	<div ng-show="newForm.userName.$error.required" class="alert alert-danger inn_alert" role="alert">用户名不能为空</div>
                            <div ng-show="newForm.userName.$error.pattern" class="alert alert-danger inn_alert" role="alert">格式不正确</div>
					      </div>
					    </div>
					  </div>
					  <div class="form-group">
					    <label for="inputPassword" class="col-sm-2 control-label">密码</label>
					    <div class="col-sm-7">
					      <input type="password" name="userPassword" ng-model="user.loginPwd" required ng-pattern="/^[A-Za-z0-9`~!@#$%^&?*_+<>{}\/'[\]]{6}$/" class="form-control" id="inputPassword" placeholder="请输入用户密码">
					      <div ng-if="(newForm.userPassword.$dirty && newForm.userPassword.$invalid) || submitstate">
					    	<div ng-show="newForm.userPassword.$error.required" class="alert alert-danger inn_alert" role="alert">密码不能为空</div>
                            <div ng-show="newForm.userPassword.$error.pattern" class="alert alert-danger inn_alert" role="alert">格式错误</div>
					      </div>
					    </div>
					  </div>
					  <div class="form-group">
					    <label for="inputPassword2" class="col-sm-2 control-label">确认密码</label>
					    <div class="col-sm-7">
					      <input type="password" name="userPassword2" ng-model="rPassword" required class="form-control" id="inputPassword2" placeholder="请再次输入用户密码">
					      <div ng-if="user.loginPwd !== rPassword" class="alert alert-danger inn_alert _reset" role="alert">密码不一致</div>
					    </div>
					  </div>
					  <div class="form-group">
					    <label class="col-sm-2 control-label">用户角色</label>
					    <div class="col-sm-5">
					      	<select id="inputRole" name="userRole" class="inn_select ng-pristine ng-valid ng-touched">
					      		<option value="0">请选择用户角色</option>
					      		<option value="{{k.id}}" ng-repeat="k in role_all">{{k.roleName}}</option>
					      		<!--<option value="1">管理员</option>
					      		<option value="2">客服</option>
					      		<option value="3">风控专员</option>-->
					      	</select>
					      	
					    </div>
					  </div>
					  
					</form>
	            	
	            </div>
	            <div class="modal-footer">
	                <button class="btn bg-color" ng-click="confirmNew()">确认</button>
	                <button class="btn" data-dismiss="modal" aria-label="Close">取消</button>
	            </div>
	        </div>
	    </div>
	</div>
	<!--/新建帐号-->
	
	<!--删除帐号-->
	<div class="modal fade" id="modal_delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	    <div class="modal-dialog" role="document">
	        <div class="modal-content">
	            <div class="modal-header">
	                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	                <h4 class="modal-title" id="myModalLabel">删除帐号</h4>
	            </div>
	            <div class="modal-body wrapper" style="max-height:590px;overflow-y: scroll;overflow-x: hidden;">
	            	
	            	<div class="row">
					  <div class="col-lg-12">
					  	
					    <table id="table_delete" class="table table-hover text-center">
					    	<thead>
					    		<tr>
					    			<td></td>
					    			<td>用户名</td>
					    			<td>用户角色</td>
					    			<td>创建日期</td>
					    		</tr>
					    	</thead>
					    	<tbody>
					    		<tr ng-repeat="u in role_list">
					    			<td><input class="inputCheck" type="radio" name="chk" value="{{u.id}}"></td>
					    			<td>{{u.name}}</td>
					    			<td>{{u.roles[0].roleName}}</td>
					    			<td>{{u.createTime}}</td>
					    		</tr>
					    	</tbody>
					    </table>
					    
					  </div><!-- /.col-lg-6 -->
					</div><!-- /.row -->
	            	
	            </div>
	            <div class="modal-footer">
	                <button class="btn bg-color" ng-click="confirmDelete()">删除</button>
	                <button class="btn" data-dismiss="modal" aria-label="Close">取消</button>
	            </div>
	        </div>
	    </div>
	</div>
	<!--/删除帐号-->
	<!--public弹窗-->
	<public-alert></public-alert>
</div>
<!--左侧菜单列表 begin-->
<div class=" col-md-12 app-content-body fade-in-up ng-scope"style="padding: 0;">
   <div class="col-md-2" style="padding: 0;" ng-controller="navCtrl">
       <ul class="list-group text-center" style="margin-top: 15px; background: #f1f1f1;">
       	<user-list ng-repeat="u in menu | userAcc:oEle"></user-list>
           <!--<li class="list-group-item">
               <a class="nav-bg-color" ng-class="navActive(0)" href="" ui-sref=".eamic">设备管理</a>
           </li>-->
           <!--<li class="list-group-item">
               <a class="nav-bg-color" ng-class="navActive(1)" href="" ui-sref=".houseAdm">房源管理</a>
           </li>-->
           <!--<li class="list-group-item">
               <a class="nav-bg-color" ng-class="navActive(2)" href="" ui-sref=".tenant">租客管理</a>
           </li>-->
           <!--<li class="list-group-item">
               <a class="nav-bg-color" ng-class="navActive(3)" href="" ui-sref=".riskManagement">风控管理</a>
           </li>-->
           <!--<li class="list-group-item">
               <a class="nav-bg-color" ng-class="navActive(4)" href="" ui-sref=".risk">系统日志</a>
           </li>-->
       </ul>
   </div>
<!--右侧内容-->
   <div class="col-md-10 " style="padding: 0;">
       <div ui-view></div>
   </div>
</div>

